﻿using AJWPFAdmin.Core.CommonEntity;
using AJWPFAdmin.Core.Enums;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AJWPFAdmin.Core.Models.EF.Tables
{
    /// <summary>
    /// 违规车辆记录表
    /// </summary>
    [Comment("违规车辆记录表")]
    public partial class IllegalVehicleRecord : CommonTableEntity
    {
        /// <summary>
        /// 车牌号码
        /// </summary>
        [Comment("车牌号码")]
        [Display(Name = "车牌号码")]
        [StringLength(50)]
        public string CarNo { get; set; }

        /// <summary>
        /// 号牌颜色
        /// </summary>
        [Comment("号牌颜色")]
        [Display(Name = "号牌颜色")]
        public CarPlateColor Color { get; set; }

        /// <summary>
        /// 车辆识别代码(VIN)
        /// </summary>
        [Comment("车辆识别代码(VIN)")]
        [Display(Name = "车辆识别代码(VIN)")]
        public string VIN { get; set; }

        /// <summary>
        /// 进厂时间
        /// </summary>
        [Comment("进厂时间")]
        [Display(Name = "进厂时间)")]
        [StringLength(50)]
        public DateTime? EntryTime { get; set; }

        /// <summary>
        /// 出厂时间
        /// </summary>
        [Comment("出厂时间")]
        [Display(Name = "出厂时间)")]
        [StringLength(50)]
        public DateTime? DeliveryTime { get; set; }

        /// <summary>
        /// 违规通行原因
        /// </summary>
        [Comment("违规通行原因")]
        [Display(Name = "违规通行原因)")]
        public string Reason { get; set; }

        /// <summary>
        /// 其他说明
        /// </summary>
        [Comment("其他说明")]
        [Display(Name = "其他说明)")]
        public string Remark { get; set; }

        /// <summary>
        /// 来源接口
        /// </summary>
        [Comment("来源接口")]
        public SystemConfigKey API { get; set; }

        /// <summary>
        /// 手动核查结果 0—超标；1—不超标
        /// </summary>
        [Comment("核查结果")]
        [Display(Name = "核查结果")]
        public int? CheckResult { get; set; }

        /// <summary>
        /// 车队名,自有、个人或运输
        /// </summary>
        [Comment("车队名")]
        [Display(Name = "车队名")]
        [StringLength(100)]
        public string FleetName { get; set; }
    }
}
